package com.phonegap.gwt.geolocation.client;



import com.google.gwt.core.client.JavaScriptObject;
public class PositionOptions extends JavaScriptObject {

	  protected PositionOptions() {
	  }
	  public static final PositionOptions create() {
		    return JavaScriptObject.createObject().cast();
	  }
	  
	  
	  //interval


	  public final native void setInterval(int interval) /*-{
	    this.interval = interval;
	  }-*/;


	  public final native int getInterval() /*-{
	    return this.interval;
	  }-*/;

	  public static PositionOptions getPositionOptions() {
		    PositionOptions po = create();
		    return po;
		  }
	  
	  public static PositionOptions getPositionOptions(int interval) {
		    PositionOptions po = create();
		    po.setInterval(interval);
		    return po;
		  }

	  
	 // timeout, 3600, an hour is default
	  public final native void setTimeout(int timeout) /*-{
	    this.timeout = timeout;
	  }-*/;


	  public final native int getTimeout() /*-{
	    return this.timeout;
	  }-*/;
}
